package org.nepu.sc.mx;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.lboot.jpa.converter.JpaListObjectConverter;
import org.lboot.jpa.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Convert;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "safe_mx")
@ApiModel("安全评价计算矩阵")
public class SafeMx extends BaseEntity implements Serializable {
    // 评价指标 b b1 b11
    @ApiModelProperty(value = "评价指标ID")
    @Column(name = "rate_id")
    String rateId;

    @ApiModelProperty(value = "评价指标名称")
    @Column(name = "rate_name")
    String rateName;

    @Convert(converter = JpaListObjectConverter.class)
    List<Integer> mx;
}
